`include "ascon_define.v"

module `ROUND_SPLIT
     (
     input                            [`S_W-1:0] s_i,

     output                          [`XI_W-1:0] x0_o,
     output                          [`XI_W-1:0] x1_o,
     output                          [`XI_W-1:0] x2_o,
     output                          [`XI_W-1:0] x3_o,
     output                          [`XI_W-1:0] x4_o
     );

localparam  X0_W                                 = 5*`S_W/5;
localparam  X1_W                                 = 4*`S_W/5;
localparam  X2_W                                 = 3*`S_W/5;
localparam  X3_W                                 = 2*`S_W/5;
localparam  X4_W                                 = 1*`S_W/5;

assign x0_o             = s_i[X0_W-1:X1_W];
assign x1_o             = s_i[X1_W-1:X2_W];
assign x2_o             = s_i[X2_W-1:X3_W];
assign x3_o             = s_i[X3_W-1:X4_W];
assign x4_o             = s_i[X4_W-1:0];

endmodule